function markCreditDeficit(val,metadata,record) {
  return record.get('Load Credit/Deficit (lb/yr)') >= 0 ? '<font color="green"><b>Credit</b></font>' : '<font color="red"><b>Deficit</b></font>';
}

function absVal(val,metadata,record) {
  return Math.abs(val).toFixed(2);
}

function dollarFigure(val) {
  return CommaFormatted(new String(Math.round(val)));
}

function makeNiceAddress(addr1,city,state,zip) {
  var a = [];
  if (addr1 != '') {
    a.push(addr1);
  }
  if (city != '' && state != '') {
    a.push(city + ', ' + state);
  }
  else {
    a.push (city + state);
  }
  if (zip != '') {
    a[a.length-1] += ' ' + zip;
  }
  return a.join(" <br>");
}
